/*    */ package src.tfhka;
/*    */ 
/*    */ public class S5PrinterData
/*    */ {
/*    */   private String RIF;
/*    */   private String registeredMachineNumber;
/*    */   private int numberMemoryAudit;
/*    */   private double capacityTotalMemoryAudit;
/*    */   private double disponyCapacityMemoryAudit;
/*    */   private int numberDocumentRegisters;
/*    */ 
/*    */   public S5PrinterData(String trama)
/*    */   {
/* 29 */     if ((trama != null) && (trama.length() == 41))
/*    */     {
/* 31 */       setRIF(trama.substring(2, 13));
/* 32 */       setRegisteredMachineNumber(trama.substring(13, 23));
/* 33 */       setNumberMemoryAudit(Integer.parseInt(trama.substring(23, 27)));
/* 34 */       setCapacityTotalMemoryAudit(Double.parseDouble(trama.substring(27, 31)));
/* 35 */       setDisponyCapacityMemoryAudit(Double.parseDouble(trama.substring(31, 35)));
/* 36 */       setNumberDocumentRegisters(Integer.parseInt(trama.substring(35, 41)));
/*    */     }
/*    */   }
/*    */ 
/*    */   public String getRIF()
/*    */   {
/* 42 */     return this.RIF;
/*    */   }
/*    */ 
/*    */   public String getRegisteredMachineNumber() {
/* 46 */     return this.registeredMachineNumber;
/*    */   }
/*    */ 
/*    */   public int getNumberMemoryAudit() {
/* 50 */     return this.numberMemoryAudit;
/*    */   }
/*    */ 
/*    */   public double getCapacityTotalMemoryAudit() {
/* 54 */     return this.capacityTotalMemoryAudit;
/*    */   }
/*    */ 
/*    */   public double getDisponyCapacityMemoryAudit() {
/* 58 */     return this.disponyCapacityMemoryAudit;
/*    */   }
/*    */ 
/*    */   public int getNumberDocumentRegisters() {
/* 62 */     return this.numberDocumentRegisters;
/*    */   }
/*    */ 
/*    */   private void setRIF(String RIF) {
/* 66 */     this.RIF = RIF;
/*    */   }
/*    */ 
/*    */   private void setRegisteredMachineNumber(String registeredMachineNumber) {
/* 70 */     this.registeredMachineNumber = registeredMachineNumber;
/*    */   }
/*    */ 
/*    */   private void setNumberMemoryAudit(int numberMemoryAudit) {
/* 74 */     this.numberMemoryAudit = numberMemoryAudit;
/*    */   }
/*    */ 
/*    */   private void setCapacityTotalMemoryAudit(double capacityTotalMemoryAudit) {
/* 78 */     this.capacityTotalMemoryAudit = capacityTotalMemoryAudit;
/*    */   }
/*    */ 
/*    */   private void setDisponyCapacityMemoryAudit(double disponyCapacityMemoryAudit) {
/* 82 */     this.disponyCapacityMemoryAudit = disponyCapacityMemoryAudit;
/*    */   }
/*    */ 
/*    */   private void setNumberDocumentRegisters(int numberDocumentRegisters) {
/* 86 */     this.numberDocumentRegisters = numberDocumentRegisters;
/*    */   }
/*    */ }

/* Location:           C:\Users\javaOne\Documents\TfhkaJava.jar
 * Qualified Name:     tfhka.S5PrinterData
 * JD-Core Version:    0.6.2
 */